-
Notifications
You must be signed in to change notification settings - Fork 6
fix: Moved GRPC services over to use PBJ generated ones #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jasper Potts <1466205+jasperpotts@users.noreply.github.com>
import edu.umd.cs.findbugs.annotations.NonNull; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.hiero.block.api.BlockAccessServiceInterface; | ||
import org.hiero.block.api.BlockRequest; | ||
import org.hiero.block.api.BlockResponse; | ||
import org.hiero.block.api.BlockResponse.Code; | ||
// PBJ doesn't generate GRPC stubs for some reason, also the proto file is broken when PBJ compiles it... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to remove this comment as well.
this.openSessions = new ConcurrentSkipListMap<>(); | ||
virtualThreadExecutor = context.threadPoolManager().getVirtualThreadExecutor(null); | ||
virtualThreadExecutor = context.threadPoolManager().getVirtualThreadExecutor("SubscribeBlockStreamHandler"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was null on purpose, so we don't create unique executors for every single handler.
By setting the name, you get a new executor service for each handler, and all of the created threads have the exact same thread name (which doesn't really help).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of non-blocking items.
Thanks for tackling this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, other than the comments leaved by @jsync-swirlds
Also spotless is complaining.
Reviewer Notes
Stops exporting protoc to anything other than simulator and suites
Related Issue(s)
Fixes #1088